package notifier.view.menus;

import javax.swing.*;
import java.awt.*;

import static javax.swing.JOptionPane.showMessageDialog;

/**
 * Created with IntelliJ IDEA.
 * User: Nuno Rafael Figueiredo
 * Date: 10-02-2014
 * Time: 18:28
 */
public class AboutItem extends JMenuItem {
    /**
     *
     */
    private static final long serialVersionUID = 5189693505777744640L;

    public AboutItem() throws HeadlessException {
        super("About");
        addActionListener(e1 -> showMessageDialog(null,
                "This dialog box is run from the About menu item"));

        addActionListener(e -> showMessageDialog(null,
                "This dialog box is run from the About menu item"));
    }
}
